import request from '/@/utils/request'

//获取所有班级
export function api_getGrades(params: any) {
  const res = request({
    url: `/sport_jk_exam/getGrades`,
    method: 'get',
    params,
  })
  console.log('api_getClass', res)
  return res
}

//获取所有学生
export function api_getStudents(params: any) {
  const res = request({
    url: `/sport_jk_exam/getStudents`,
    method: 'get',
    params,
  })
  console.log('api_getStudents', res)
  return res
}

export function getStudentsPrints(params: any) {
  const res = request({
    url: `/sport_jk_exam/getStudentsPrints`,
    method: 'get',
    params,
  })
  console.log('getStudentsPrints', res)
  return res
}
export function getStudentsPrintCode(params: any) {
  const res = request({
    url: `/sport_jk_exam/getStudentsPrintCode`,
    method: 'get',
    params,
  })
  console.log('getStudentsPrintCode', res)
  return res
}
export function getStudentsPrintCodeSingle(params: any) {
  const res = request({
    url: `/sport_jk_exam/getStudentsPrintCodeSingle`,
    method: 'get',
    params,
  })
  console.log('getStudentsPrintCodeSingle', res)
  return res
}

export function api_getStudentDetail(params: any) {
  const res = request({
    url: `/sport_jk_exam/getStudentDetail`,
    method: 'get',
    params,
  })
  console.log('api_getStudentDetail', res)
  return res
}

//获取考试记录
export function api_getLog(params: any) {
  const res = request({
    url: `/sport_jk_exam/getLog`,
    method: 'get',
    params,
  })
  console.log('api_getLog', res)
  return res
}

//获取统计数据
export function api_getReport(params: any) {
  const res = request({
    url: `/sport_jk_exam/getReport`,
    method: 'get',
    params,
  })
  console.log('api_getReport', res)
  return res
}
